<h4>Sample Documents <br>
<span style="font-size:12px;">( These sample documents will be made available for candidates to download, as reference to prepare their own documents for application. Please click "browse" to upload the sample document for your award.)</span>
</h4>
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<div class="table-responsive add_fields">
				<table cellpadding="0" cellspacing="0" border="0" class="table">
					<?php if(isset($application_form_docs) && !empty($application_form_docs)){
						foreach($application_form_docs as $key => $temp){
							$val1 = $temp['master_application_form_name'].'1';
					 ?>		
					<tr>
						<td>
							<label for="<?php echo $temp['master_application_form_name']; ?>" class="form_text"><?php echo $temp['master_application_form_label']; ?> :</label>
							<input id="<?php echo $temp['master_application_form_name']; ?>" name="<?php echo $temp['master_application_form_name']; ?>" type="text" value="<?php if(isset($post_value[$temp['master_application_form_name']])){ echo $post_value[$temp['master_application_form_name']];} else if(isset($document_field_data['field_id']) && in_array($temp['master_application_id'],$document_field_data['field_id'])){ echo $document_field_data['label'][$temp['master_application_id']];}?>" />
							<input type="hidden" name="<?php echo $temp['master_application_form_name']; ?>_id" value="<?php echo $temp['master_application_id']; ?>">
						</td>
						<td>
							<input id="<?php echo $temp['master_application_form_name']; ?>" name="<?php echo $temp['master_application_form_name']; ?>" <?php if (isset($document_field_data['field_id']) && in_array($temp['master_application_id'],$document_field_data['field_id'])){ echo 'checked'; }?> type="checkbox" value="<?php echo $temp['master_application_form_label']; ?>" />
							<label for="<?php echo $temp['master_application_form_name']; ?>">Show text field</label>
							&nbsp;&nbsp;&nbsp;&nbsp;
							<input id="<?php echo $temp['master_application_form_name']; ?>1" name="<?php echo $temp['master_application_form_name']; ?>1" type="checkbox" <?php if(isset($post_value[$val1])){ echo 'checked';} elseif(isset($document_field_data['mandatory'][$temp['master_application_id']]) && $document_field_data['mandatory'][$temp['master_application_id']]=='Yes'){ echo 'checked'; } ?> value="<?php echo $temp['master_application_form_label']; ?>" />
							<label for="<?php echo $temp['master_application_form_name']; ?>1" class="label_text">Mandatory</label>
						</td>
					</tr>
					<?php }} ?>
				</table>
			</div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->